package com.starmark.gateway.springcloud.provider.dto;

import lombok.Getter;
import lombok.Setter;
import org.springframework.lang.Nullable;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * @author starmark
 * @date 20-1-23  上午9:39
 */

@Getter
@Setter
public class GatewayProjectDto implements Serializable {

    public GatewayProjectDto(){
        super();
    }

    /**
     * 工程id
     */
    private String id;
    /**
     * 工程编码
     */
    private String projectCode;


    /**
     * 密钥
     */
    private String salt;

    /**
     * 超时时间
     */
    private long expireTime;

    /**
     * 刷新token时间
     *
     */
    private int tokenRefreshInterval;
    /**
     * 登陆地址
     */
    private String loginAddress;

    @Nullable
    private List<String> allowedOrigins;

    @Nullable
    private List<String> allowedMethods;

    @Nullable
    private List<String> allowedHeaders;

    @Nullable
    private List<String> exposedHeaders;

    @Nullable
    private Boolean allowCredentials;

    /**
     * 匿名地址
     */
    private List<String> annoUrl=new ArrayList<>();
}
